﻿function Profile() {
}

Profile.prototype.getProfile = function (handleFunc) {
    $.ajax({
        dataType: "json",
        url: '/Profile/GetProfile',
        success: function (back) {
            handleFunc(back);
        }
    });
};

function BlogCategory() {
}

BlogCategory.prototype.getCategories = function (handleFunc) {
    $.ajax({
        dataType: "json",
        url: '/BlogCategory/GetCategories',
        success: function (back) {
            handleFunc(back);
        }
    });
};

function BlogPost() {
    
}

BlogPost.prototype.getPosts = function (handleFunc) {
    $.ajax({
        dataType: "json",
        url: '/BlogPost/GetPosts',
        success: function (back) {
            handleFunc(back);
        }
    });
};